package com.yuantong.xyerp.core.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 物品品类表，保存原料/产品的级别，铝下分两级，铜下分一级，具体货品信息保存到goods表中
 * </p>
 *
 * @author JianguoYin
 * @since 2021-08-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Category对象", description="物品品类表，保存原料/产品的级别，铝下分两级，铜下分一级，具体货品信息保存到goods表中")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "36位UUID主键")
    private String id;

    @ApiModelProperty(value = "品类名称")
    private String name;

    @ApiModelProperty(value = "支持四级产品品类编码：品类-一级-二级-三级，每一级两个数字")
    private String code;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "最近更新时间（保存到秒）")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人id")
    private String creatorId;

    @ApiModelProperty(value = "0-停用，1-正常")
    private String status;


}
